package com.circulardependence.controller;
import com.circulardependence.entity.Myaddress;
import com.circulardependence.service.MyaddressService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import javax.annotation.Resource;
/**
 * Created by IntelliJ IDEA2021.3
 * @Author: Tenghw
 * @Date: 2022/08/27  18:28
 * @Description:
 */
@Api(tags = "myaddress个人信息对外接口")
@Controller
@RequestMapping(path = "/myaddress")
@Slf4j
@SuppressWarnings("all")
public class MyaddressController {
    @Resource
    MyaddressService myaddressService;
    @ApiOperation("查询")
    @GetMapping(path = "/getMyaddressById/{id}")
    @ResponseBody
    public Myaddress getOneMyaddress(@PathVariable("id") Integer id){
        log.info("=========== MyaddressController_getOneMyaddress =================");
        return  myaddressService.getOne(id);
    }
}
